package com.gxa.pojo;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;
@ApiModel(value = "角色的实体")
public class Role {
  @ApiModelProperty(name = "role_id" ,notes = "角色的id",dataType = "Integer" ,required = true)
  private Integer role_id;
  @ApiModelProperty(name = "role_name" ,notes = "角色名称",dataType = "String" ,required = true)
  private String role_name;
  @ApiModelProperty(name = "role_describe" ,notes = "角色描述",dataType = "String" ,required = true)
  private String role_describe;
  @ApiModelProperty(name = "permission_id" ,notes = "权限的id",dataType = "Integer" ,required = true)
  private Integer permission_id;

  //修改过的
  private List<Permission> Permissionlist;

  public Integer getRole_id() {
    return role_id;
  }

  public void setRole_id(Integer role_id) {
    this.role_id = role_id;
  }

  public String getRole_name() {
    return role_name;
  }

  public void setRole_name(String role_name) {
    this.role_name = role_name;
  }

  public String getRole_describe() {
    return role_describe;
  }

  public void setRole_describe(String role_describe) {
    this.role_describe = role_describe;
  }

  public Integer getPermission_id() {
    return permission_id;
  }

  public void setPermission_id(Integer permission_id) {
    this.permission_id = permission_id;
  }

  public List<Permission> getPermissionlist() {
    return Permissionlist;
  }

  public void setPermissionlist(List<Permission> permissionlist) {
    Permissionlist = permissionlist;
  }

  public Role(Integer role_id, String role_name, String role_describe, Integer permission_id, List<Permission> permissionlist) {
    this.role_id = role_id;
    this.role_name = role_name;
    this.role_describe = role_describe;
    this.permission_id = permission_id;
    Permissionlist = permissionlist;
  }

  public Role() {
  }

}
